﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmoneyWeiXinEntity;
using EmoneyWeiXinDAL;
using System.Data;
using EmoneyWeiXinCommon;
namespace EmoneyWeiXinBLL
{
    public class CustomAccountManagerBLL
    {
        public static List<CustomAccountManagerEntity> getCustomAccountManagerList(int pindex, int psize, int weixinid, out int total)
        {
            return CustomAccountManagerDal.getCustomAccountManagerList(pindex, psize, weixinid, out  total);
        }
        public static CustomAccountManagerEntity getCustomAccountManagerListByID(int id)
        {
            var list= CustomAccountManagerDal.getCustomAccountManagerListByID(id);
            if (list != null && list.Count > 0)
                return list[0];
            else
               return new CustomAccountManagerEntity();
        }
        public static List<CustomAccountManagerEntity> getCustomAccountManagerList()
        {
            return CustomAccountManagerDal.getCustomAccountManagerList();
        }
        public static int UpdateCustomAccountManager(CustomAccountManagerEntity obj)
        {
            return CustomAccountManagerDal.UpdateCustomAccountManager(obj);
        }
        public static int DeleteCustomAccountManager(int id)
        {
            return CustomAccountManagerDal.DeleteCustomAccountManager(id);
        }
    }
}
